# -*- coding: utf-8 -*-
'''
Basic tests
'''
import unittest
from processors.mercurial_repo_processor import LocalMercurialRepoProcessor
from ut_settings import Settings
import setup

class TestComparision(unittest.TestCase):
    '''
    Tests comparison of change lists.
    
    '''
    
    def setUp(self):
        olddir, tmpdir, projdir = setup.clean_up()
        self._repo_processor = LocalMercurialRepoProcessor(Settings(),
                    tmpdir, olddir, {"location" : projdir})
        self._repo_processor.initialize()
        self._repo_processor.process()
    def tearDown(self):
        pass

    def testMoreThanOneChangeAndJarekOnTheList(self):
        assert(len(self._repo_processor.changes) > 1)
           
if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
